﻿using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZhonTai.Admin.Core.Entities;
using ZhonTai.Industry.Domain.Feature;
using ZhonTai.Industry.Domain.WorkStation;

namespace ZhonTai.Industry.Domain.StationFeature
{
    /// <summary>
    /// 工站功能关系
    /// </summary>
    /// <remarks>工站功能配置</remarks>
    [Table(Name = "cfg_station_feature")]
    public class StationFeatureEntity : EntityBase
    {
        /// <summary>
        /// 工站ID
        /// </summary>
        [Column(Precision = 64)]
        public long StationId { get; set; }

        /// <summary>
        /// 特征ID
        /// </summary>
        [Column(Precision = 64)]
        public long FeatureId { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool Enabled { get; set; }

        [Navigate(nameof(StationId))]
        public WorkStationEntity WorkStation { get; set; }

        [Navigate(nameof(FeatureId))]
        public FeatureEntity Feature { get; set; }
    }
}